﻿<Window x:Class="Pausenzeitrechner.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Time="clr-namespace:WPFCustomTextboxControls.Time;assembly=WPFCustomTextboxControls" Title="Arbeitszeitrechner" Height="180" Width="520" MinHeight="180" MinWidth="520">
    <Grid Height="130">
        <Grid.RowDefinitions>
            <RowDefinition Height="30"></RowDefinition>
            <RowDefinition Height="30"></RowDefinition>
            <RowDefinition Height="30"></RowDefinition>
            <RowDefinition Height="30"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="150"></ColumnDefinition>
            <ColumnDefinition Width="37"></ColumnDefinition>
            <ColumnDefinition Width="150"></ColumnDefinition>
            <ColumnDefinition Width="150"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        
        <Label Grid.Column="0" Grid.Row="0"  Content="Startzeit"/>
        <Time:MaskedTimeTextBox Grid.Column="1" Grid.Row="0" x:Name="uxStartZeitMask" Text="07:50" StayInFocusUntilValid="False" IgnoreSpaceKey="True" Height="22"></Time:MaskedTimeTextBox>
        
        <Label Grid.Column="0" Grid.Row="1" Content="Endezeit" />
        <Time:MaskedTimeTextBox Grid.Column="1" Grid.Row="1" x:Name="uxEndezeitMask" Text="18:00" StayInFocusUntilValid="False" IgnoreSpaceKey="True" Height="22"></Time:MaskedTimeTextBox>
        
        <Label Grid.Column="0" Grid.Row="2" Content="Pausenzeit in Min."/>
        <TextBox Grid.Column="1" Grid.Row="2" x:Name="uxPausenzeit" Height="22" />

        <Label Grid.Column="0" Grid.Row="4" FontWeight="Bold" Content="Gesamtzeit in Stunden"/>
        <Label Grid.Column="2" Grid.Row="4" x:Name="uxGesamtZeitLb" FontWeight="Bold"/>
        <Button Grid.Column="3" Grid.Row="4" Content="Arbeitszeit berechnen" Click="Button_Click"></Button>
    </Grid>
</Window>
